<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- view 视图层 v -->
        <h1>{{msg}}</h1>
    </div>
</body>

</html>
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
<script>
    //M 数据层
    //V 视图层
    //VM 同步数据层和视图层的一个对象

    let vm = new Vue({
        //el:vue管理的Dom的范围是哪一块
        el: "#app",
        //数据 
        data: {
            //m model层
            msg: "hello world"
        }
    })
</script>